import Vue from 'vue'
import VueRouter from 'vue-router'
import Foot from "@/views/Foot";
import AppHead from "../views/AppHead";
import Player from "../views/Player";
import Select from "@/views/Select";
import Mhz from "@/views/Mhz";
import Artist from "@/views/Artist";
import Collection from "@/views/Collection";
import List from "@/views/List";
import Melogin from "@/views/Melogin";
import Searchs from "@/views/Searchs";



Vue.use(VueRouter)

const routes = [
  {
    path: '/searchs',
    name: "Searchs",
    component: Searchs
  },
  {
    path: '/melogin',
    name: 'Melogin',
    component: Melogin
  },
  {
    path: '/collection',
    name: 'Collection',
    component:Collection
  },
  {
    path: '/list',
    name: 'List',
    component: List
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/foot',
    name: 'Foot',
    component: Foot
  },
  {
    path: '/apphead',
    name: "AppHead",
    component: AppHead
  },
  {
    path: '/player',
    name: 'Player',
    component: Player,
  },
  {
    path: '/select',
    name: 'Select',
    component: Select
  },
  {
    path: '*',
    name: 'Mhz',
    component: Mhz
  },
  {
    path: '*',
    name: 'Artist',
    component:Artist
  }
]

const router = new VueRouter({
  routes
})

export default router
